import 'package:FlutterDemo/common/commons.dart';
import 'package:FlutterDemo/providers/page_providers_list.dart';
import 'package:FlutterDemo/test/bloc/test_bloc.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

void main() {
  // 单例对象
  // 全局监听Bloc操作
  // BlocSupervisor.delegate = SimpleBlocDelegate();

  // 最新的使用方式
  Bloc.observer = SimpleBlocObserver();
  var provider = new SampleListPageProvider();
  var mainpage = provider.buildListPageWidget(ListPageTarget.PAGEMAINAPPSTATEWIDGET);
  runApp(buildBasicMaterialAppWidget("Flutter练习V2021", mainpage));
}
